package com.ruoyi.common.core.domain.entity.system;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 计时收费规则对象 sys_jishi
 *
 * @author zjw
 * @date 2023-08-04
 */
public class SysJishi extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 计时收费id
     */
    private Long jishiId;

    /**
     * 当前计时收费规则所属景区id
     */
    private Long scenicId;

    /**
     * 计时收费描述。
     */
    private String description;

    /**
     * 价格，单位：元。
     */
    private double price;

    /**
     * 计时单位，默认为0。(0: 元/分钟, 1: 元/30分钟, 2: 元/小时)
     */
    private int unit;

    /**
     * 押金。
     */
    private double deposit;

    public void setJishiId(Long jishiId) {
        this.jishiId = jishiId;
    }

    public Long getJishiId() {
        return jishiId;
    }

    public void setScenicId(Long scenicId) {
        this.scenicId = scenicId;
    }

    public Long getScenicId() {
        return scenicId;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getPrice() {
        return price;
    }

    public void setUnit(int unit) {
        this.unit = unit;
    }

    public int getUnit() {
        return unit;
    }

    public void setDeposit(double deposit) {
        this.deposit = deposit;
    }

    public double getDeposit() {
        return deposit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("jishiId", getJishiId())
                .append("scenicId", getScenicId())
                .append("description", getDescription())
                .append("price", getPrice())
                .append("unit", getUnit())
                .append("deposit", getDeposit())
                .toString();
    }
}
